import com.yanjingzheng.entity.Broker;
import com.yanjingzheng.entity.BuyStock;
import com.yanjingzheng.entity.SellStock;
import com.yanjingzheng.entity.Stock;

/**
 * @Author Yenchingcheng
 * @Date 2023/10/27 11:09
 * @Description 测试类
 **/
public class Test {

    public static void main(String[] args) {
        Stock stock = new Stock();

        BuyStock buyStock = new BuyStock(stock);
        SellStock sellStock = new SellStock(stock);

        Broker broker = new Broker();
        broker.takeOrder(buyStock);
        broker.takeOrder(sellStock);
        broker.placeOrders();
    }
}
